
daemon4:     file format elf64-littleaarch64


Disassembly of section .init:

00000000004008a0 <_init>:
  4008a0:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
  4008a4:	910003fd 	mov	x29, sp
  4008a8:	94000070 	bl	400a68 <call_weak_fn>
  4008ac:	a8c17bfd 	ldp	x29, x30, [sp], #16
  4008b0:	d65f03c0 	ret

Disassembly of section .plt:

00000000004008c0 <.plt>:
  4008c0:	a9bf7bf0 	stp	x16, x30, [sp, #-16]!
  4008c4:	b0000090 	adrp	x16, 411000 <__FRAME_END__+0x1017c>
  4008c8:	f947fe11 	ldr	x17, [x16, #4088]
  4008cc:	913fe210 	add	x16, x16, #0xff8
  4008d0:	d61f0220 	br	x17
  4008d4:	d503201f 	nop
  4008d8:	d503201f 	nop
  4008dc:	d503201f 	nop

00000000004008e0 <strlen@plt>:
  4008e0:	d0000090 	adrp	x16, 412000 <strlen@GLIBC_2.17>
  4008e4:	f9400211 	ldr	x17, [x16]
  4008e8:	91000210 	add	x16, x16, #0x0
  4008ec:	d61f0220 	br	x17

00000000004008f0 <exit@plt>:
  4008f0:	d0000090 	adrp	x16, 412000 <strlen@GLIBC_2.17>
  4008f4:	f9400611 	ldr	x17, [x16, #8]
  4008f8:	91002210 	add	x16, x16, #0x8
  4008fc:	d61f0220 	br	x17

0000000000400900 <fork@plt>:
  400900:	d0000090 	adrp	x16, 412000 <strlen@GLIBC_2.17>
  400904:	f9400a11 	ldr	x17, [x16, #16]
  400908:	91004210 	add	x16, x16, #0x10
  40090c:	d61f0220 	br	x17

0000000000400910 <localtime@plt>:
  400910:	d0000090 	adrp	x16, 412000 <strlen@GLIBC_2.17>
  400914:	f9400e11 	ldr	x17, [x16, #24]
  400918:	91006210 	add	x16, x16, #0x18
  40091c:	d61f0220 	br	x17

0000000000400920 <time@plt>:
  400920:	d0000090 	adrp	x16, 412000 <strlen@GLIBC_2.17>
  400924:	f9401211 	ldr	x17, [x16, #32]
  400928:	91008210 	add	x16, x16, #0x20
  40092c:	d61f0220 	br	x17

0000000000400930 <open@plt>:
  400930:	d0000090 	adrp	x16, 412000 <strlen@GLIBC_2.17>
  400934:	f9401611 	ldr	x17, [x16, #40]
  400938:	9100a210 	add	x16, x16, #0x28
  40093c:	d61f0220 	br	x17

0000000000400940 <sigemptyset@plt>:
  400940:	d0000090 	adrp	x16, 412000 <strlen@GLIBC_2.17>
  400944:	f9401a11 	ldr	x17, [x16, #48]
  400948:	9100c210 	add	x16, x16, #0x30
  40094c:	d61f0220 	br	x17

0000000000400950 <__libc_start_main@plt>:
  400950:	d0000090 	adrp	x16, 412000 <strlen@GLIBC_2.17>
  400954:	f9401e11 	ldr	x17, [x16, #56]
  400958:	9100e210 	add	x16, x16, #0x38
  40095c:	d61f0220 	br	x17

0000000000400960 <sleep@plt>:
  400960:	d0000090 	adrp	x16, 412000 <strlen@GLIBC_2.17>
  400964:	f9402211 	ldr	x17, [x16, #64]
  400968:	91010210 	add	x16, x16, #0x40
  40096c:	d61f0220 	br	x17

0000000000400970 <close@plt>:
  400970:	d0000090 	adrp	x16, 412000 <strlen@GLIBC_2.17>
  400974:	f9402611 	ldr	x17, [x16, #72]
  400978:	91012210 	add	x16, x16, #0x48
  40097c:	d61f0220 	br	x17

0000000000400980 <sigaction@plt>:
  400980:	d0000090 	adrp	x16, 412000 <strlen@GLIBC_2.17>
  400984:	f9402a11 	ldr	x17, [x16, #80]
  400988:	91014210 	add	x16, x16, #0x50
  40098c:	d61f0220 	br	x17

0000000000400990 <__gmon_start__@plt>:
  400990:	d0000090 	adrp	x16, 412000 <strlen@GLIBC_2.17>
  400994:	f9402e11 	ldr	x17, [x16, #88]
  400998:	91016210 	add	x16, x16, #0x58
  40099c:	d61f0220 	br	x17

00000000004009a0 <write@plt>:
  4009a0:	d0000090 	adrp	x16, 412000 <strlen@GLIBC_2.17>
  4009a4:	f9403211 	ldr	x17, [x16, #96]
  4009a8:	91018210 	add	x16, x16, #0x60
  4009ac:	d61f0220 	br	x17

00000000004009b0 <abort@plt>:
  4009b0:	d0000090 	adrp	x16, 412000 <strlen@GLIBC_2.17>
  4009b4:	f9403611 	ldr	x17, [x16, #104]
  4009b8:	9101a210 	add	x16, x16, #0x68
  4009bc:	d61f0220 	br	x17

00000000004009c0 <puts@plt>:
  4009c0:	d0000090 	adrp	x16, 412000 <strlen@GLIBC_2.17>
  4009c4:	f9403a11 	ldr	x17, [x16, #112]
  4009c8:	9101c210 	add	x16, x16, #0x70
  4009cc:	d61f0220 	br	x17

00000000004009d0 <chdir@plt>:
  4009d0:	d0000090 	adrp	x16, 412000 <strlen@GLIBC_2.17>
  4009d4:	f9403e11 	ldr	x17, [x16, #120]
  4009d8:	9101e210 	add	x16, x16, #0x78
  4009dc:	d61f0220 	br	x17

00000000004009e0 <asctime@plt>:
  4009e0:	d0000090 	adrp	x16, 412000 <strlen@GLIBC_2.17>
  4009e4:	f9404211 	ldr	x17, [x16, #128]
  4009e8:	91020210 	add	x16, x16, #0x80
  4009ec:	d61f0220 	br	x17

00000000004009f0 <setsid@plt>:
  4009f0:	d0000090 	adrp	x16, 412000 <strlen@GLIBC_2.17>
  4009f4:	f9404611 	ldr	x17, [x16, #136]
  4009f8:	91022210 	add	x16, x16, #0x88
  4009fc:	d61f0220 	br	x17

0000000000400a00 <umask@plt>:
  400a00:	d0000090 	adrp	x16, 412000 <strlen@GLIBC_2.17>
  400a04:	f9404a11 	ldr	x17, [x16, #144]
  400a08:	91024210 	add	x16, x16, #0x90
  400a0c:	d61f0220 	br	x17

0000000000400a10 <printf@plt>:
  400a10:	d0000090 	adrp	x16, 412000 <strlen@GLIBC_2.17>
  400a14:	f9404e11 	ldr	x17, [x16, #152]
  400a18:	91026210 	add	x16, x16, #0x98
  400a1c:	d61f0220 	br	x17

Disassembly of section .text:

0000000000400a20 <_start>:
  400a20:	d280001d 	mov	x29, #0x0                   	// #0
  400a24:	d280001e 	mov	x30, #0x0                   	// #0
  400a28:	aa0003e5 	mov	x5, x0
  400a2c:	f94003e1 	ldr	x1, [sp]
  400a30:	910023e2 	add	x2, sp, #0x8
  400a34:	910003e6 	mov	x6, sp
  400a38:	580000c0 	ldr	x0, 400a50 <_start+0x30>
  400a3c:	580000e3 	ldr	x3, 400a58 <_start+0x38>
  400a40:	58000104 	ldr	x4, 400a60 <_start+0x40>
  400a44:	97ffffc3 	bl	400950 <__libc_start_main@plt>
  400a48:	97ffffda 	bl	4009b0 <abort@plt>
  400a4c:	00000000 	.inst	0x00000000 ; undefined
  400a50:	00400b1c 	.word	0x00400b1c
  400a54:	00000000 	.word	0x00000000
  400a58:	00400d28 	.word	0x00400d28
  400a5c:	00000000 	.word	0x00000000
  400a60:	00400da8 	.word	0x00400da8
  400a64:	00000000 	.word	0x00000000

0000000000400a68 <call_weak_fn>:
  400a68:	b0000080 	adrp	x0, 411000 <__FRAME_END__+0x1017c>
  400a6c:	f947f000 	ldr	x0, [x0, #4064]
  400a70:	b4000040 	cbz	x0, 400a78 <call_weak_fn+0x10>
  400a74:	17ffffc7 	b	400990 <__gmon_start__@plt>
  400a78:	d65f03c0 	ret
  400a7c:	00000000 	.inst	0x00000000 ; undefined

0000000000400a80 <deregister_tm_clones>:
  400a80:	d0000080 	adrp	x0, 412000 <strlen@GLIBC_2.17>
  400a84:	9102e000 	add	x0, x0, #0xb8
  400a88:	d0000081 	adrp	x1, 412000 <strlen@GLIBC_2.17>
  400a8c:	9102e021 	add	x1, x1, #0xb8
  400a90:	eb00003f 	cmp	x1, x0
  400a94:	540000a0 	b.eq	400aa8 <deregister_tm_clones+0x28>  // b.none
  400a98:	90000001 	adrp	x1, 400000 <_init-0x8a0>
  400a9c:	f946e421 	ldr	x1, [x1, #3528]
  400aa0:	b4000041 	cbz	x1, 400aa8 <deregister_tm_clones+0x28>
  400aa4:	d61f0020 	br	x1
  400aa8:	d65f03c0 	ret
  400aac:	d503201f 	nop

0000000000400ab0 <register_tm_clones>:
  400ab0:	d0000080 	adrp	x0, 412000 <strlen@GLIBC_2.17>
  400ab4:	9102e000 	add	x0, x0, #0xb8
  400ab8:	d0000081 	adrp	x1, 412000 <strlen@GLIBC_2.17>
  400abc:	9102e021 	add	x1, x1, #0xb8
  400ac0:	cb000021 	sub	x1, x1, x0
  400ac4:	9343fc21 	asr	x1, x1, #3
  400ac8:	8b41fc21 	add	x1, x1, x1, lsr #63
  400acc:	9341fc21 	asr	x1, x1, #1
  400ad0:	b40000a1 	cbz	x1, 400ae4 <register_tm_clones+0x34>
  400ad4:	90000002 	adrp	x2, 400000 <_init-0x8a0>
  400ad8:	f946e842 	ldr	x2, [x2, #3536]
  400adc:	b4000042 	cbz	x2, 400ae4 <register_tm_clones+0x34>
  400ae0:	d61f0040 	br	x2
  400ae4:	d65f03c0 	ret

0000000000400ae8 <__do_global_dtors_aux>:
  400ae8:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  400aec:	910003fd 	mov	x29, sp
  400af0:	f9000bf3 	str	x19, [sp, #16]
  400af4:	d0000093 	adrp	x19, 412000 <strlen@GLIBC_2.17>
  400af8:	3942d260 	ldrb	w0, [x19, #180]
  400afc:	35000080 	cbnz	w0, 400b0c <__do_global_dtors_aux+0x24>
  400b00:	97ffffe0 	bl	400a80 <deregister_tm_clones>
  400b04:	52800020 	mov	w0, #0x1                   	// #1
  400b08:	3902d260 	strb	w0, [x19, #180]
  400b0c:	f9400bf3 	ldr	x19, [sp, #16]
  400b10:	a8c27bfd 	ldp	x29, x30, [sp], #32
  400b14:	d65f03c0 	ret

0000000000400b18 <frame_dummy>:
  400b18:	17ffffe6 	b	400ab0 <register_tm_clones>

0000000000400b1c <main>:
  400b1c:	a9b47bfd 	stp	x29, x30, [sp, #-192]!
  400b20:	910003fd 	mov	x29, sp
  400b24:	94000046 	bl	400c3c <create_daemon>
  400b28:	90000000 	adrp	x0, 400000 <_init-0x8a0>
  400b2c:	91302000 	add	x0, x0, #0xc08
  400b30:	f9000ba0 	str	x0, [x29, #16]
  400b34:	910043a0 	add	x0, x29, #0x10
  400b38:	91002000 	add	x0, x0, #0x8
  400b3c:	97ffff81 	bl	400940 <sigemptyset@plt>
  400b40:	b9009bbf 	str	wzr, [x29, #152]
  400b44:	910043a0 	add	x0, x29, #0x10
  400b48:	d2800002 	mov	x2, #0x0                   	// #0
  400b4c:	aa0003e1 	mov	x1, x0
  400b50:	52800060 	mov	w0, #0x3                   	// #3
  400b54:	97ffff8b 	bl	400980 <sigaction@plt>
  400b58:	7100001f 	cmp	w0, #0x0
  400b5c:	54000460 	b.eq	400be8 <main+0xcc>  // b.none
  400b60:	90000000 	adrp	x0, 400000 <_init-0x8a0>
  400b64:	91376000 	add	x0, x0, #0xdd8
  400b68:	97ffff96 	bl	4009c0 <puts@plt>
  400b6c:	52800000 	mov	w0, #0x0                   	// #0
  400b70:	97ffff60 	bl	4008f0 <exit@plt>
  400b74:	90000000 	adrp	x0, 400000 <_init-0x8a0>
  400b78:	9137c000 	add	x0, x0, #0xdf0
  400b7c:	52803482 	mov	w2, #0x1a4                 	// #420
  400b80:	52808821 	mov	w1, #0x441                 	// #1089
  400b84:	97ffff6b 	bl	400930 <open@plt>
  400b88:	b900bfa0 	str	w0, [x29, #188]
  400b8c:	b940bfa0 	ldr	w0, [x29, #188]
  400b90:	3100041f 	cmn	w0, #0x1
  400b94:	54000081 	b.ne	400ba4 <main+0x88>  // b.any
  400b98:	90000000 	adrp	x0, 400000 <_init-0x8a0>
  400b9c:	9138a000 	add	x0, x0, #0xe28
  400ba0:	97ffff88 	bl	4009c0 <puts@plt>
  400ba4:	d2800000 	mov	x0, #0x0                   	// #0
  400ba8:	97ffff5e 	bl	400920 <time@plt>
  400bac:	f90057a0 	str	x0, [x29, #168]
  400bb0:	9102a3a0 	add	x0, x29, #0xa8
  400bb4:	97ffff57 	bl	400910 <localtime@plt>
  400bb8:	97ffff8a 	bl	4009e0 <asctime@plt>
  400bbc:	f9005ba0 	str	x0, [x29, #176]
  400bc0:	f9405ba0 	ldr	x0, [x29, #176]
  400bc4:	97ffff47 	bl	4008e0 <strlen@plt>
  400bc8:	aa0003e2 	mov	x2, x0
  400bcc:	f9405ba1 	ldr	x1, [x29, #176]
  400bd0:	b940bfa0 	ldr	w0, [x29, #188]
  400bd4:	97ffff73 	bl	4009a0 <write@plt>
  400bd8:	b940bfa0 	ldr	w0, [x29, #188]
  400bdc:	97ffff65 	bl	400970 <close@plt>
  400be0:	52800780 	mov	w0, #0x3c                  	// #60
  400be4:	97ffff5f 	bl	400960 <sleep@plt>
  400be8:	d0000080 	adrp	x0, 412000 <strlen@GLIBC_2.17>
  400bec:	9102c000 	add	x0, x0, #0xb0
  400bf0:	b9400000 	ldr	w0, [x0]
  400bf4:	7100001f 	cmp	w0, #0x0
  400bf8:	54fffbe1 	b.ne	400b74 <main+0x58>  // b.any
  400bfc:	52800000 	mov	w0, #0x0                   	// #0
  400c00:	a8cc7bfd 	ldp	x29, x30, [sp], #192
  400c04:	d65f03c0 	ret

0000000000400c08 <handler>:
  400c08:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  400c0c:	910003fd 	mov	x29, sp
  400c10:	b9001fa0 	str	w0, [x29, #28]
  400c14:	90000000 	adrp	x0, 400000 <_init-0x8a0>
  400c18:	9138e000 	add	x0, x0, #0xe38
  400c1c:	b9401fa1 	ldr	w1, [x29, #28]
  400c20:	97ffff7c 	bl	400a10 <printf@plt>
  400c24:	d0000080 	adrp	x0, 412000 <strlen@GLIBC_2.17>
  400c28:	9102c000 	add	x0, x0, #0xb0
  400c2c:	b900001f 	str	wzr, [x0]
  400c30:	d503201f 	nop
  400c34:	a8c27bfd 	ldp	x29, x30, [sp], #32
  400c38:	d65f03c0 	ret

0000000000400c3c <create_daemon>:
  400c3c:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  400c40:	910003fd 	mov	x29, sp
  400c44:	97ffff2f 	bl	400900 <fork@plt>
  400c48:	b9001ba0 	str	w0, [x29, #24]
  400c4c:	b9401ba0 	ldr	w0, [x29, #24]
  400c50:	3100041f 	cmn	w0, #0x1
  400c54:	540000c1 	b.ne	400c6c <create_daemon+0x30>  // b.any
  400c58:	90000000 	adrp	x0, 400000 <_init-0x8a0>
  400c5c:	91398000 	add	x0, x0, #0xe60
  400c60:	97ffff58 	bl	4009c0 <puts@plt>
  400c64:	52800020 	mov	w0, #0x1                   	// #1
  400c68:	97ffff22 	bl	4008f0 <exit@plt>
  400c6c:	b9401ba0 	ldr	w0, [x29, #24]
  400c70:	7100001f 	cmp	w0, #0x0
  400c74:	54000060 	b.eq	400c80 <create_daemon+0x44>  // b.none
  400c78:	52800000 	mov	w0, #0x0                   	// #0
  400c7c:	97ffff1d 	bl	4008f0 <exit@plt>
  400c80:	97ffff5c 	bl	4009f0 <setsid@plt>
  400c84:	3100041f 	cmn	w0, #0x1
  400c88:	540000c1 	b.ne	400ca0 <create_daemon+0x64>  // b.any
  400c8c:	90000000 	adrp	x0, 400000 <_init-0x8a0>
  400c90:	9139c000 	add	x0, x0, #0xe70
  400c94:	97ffff4b 	bl	4009c0 <puts@plt>
  400c98:	52800020 	mov	w0, #0x1                   	// #1
  400c9c:	97ffff15 	bl	4008f0 <exit@plt>
  400ca0:	97ffff18 	bl	400900 <fork@plt>
  400ca4:	b9001ba0 	str	w0, [x29, #24]
  400ca8:	b9401ba0 	ldr	w0, [x29, #24]
  400cac:	3100041f 	cmn	w0, #0x1
  400cb0:	540000c1 	b.ne	400cc8 <create_daemon+0x8c>  // b.any
  400cb4:	90000000 	adrp	x0, 400000 <_init-0x8a0>
  400cb8:	91398000 	add	x0, x0, #0xe60
  400cbc:	97ffff41 	bl	4009c0 <puts@plt>
  400cc0:	52800020 	mov	w0, #0x1                   	// #1
  400cc4:	97ffff0b 	bl	4008f0 <exit@plt>
  400cc8:	b9401ba0 	ldr	w0, [x29, #24]
  400ccc:	7100001f 	cmp	w0, #0x0
  400cd0:	54000060 	b.eq	400cdc <create_daemon+0xa0>  // b.none
  400cd4:	52800000 	mov	w0, #0x0                   	// #0
  400cd8:	97ffff06 	bl	4008f0 <exit@plt>
  400cdc:	90000000 	adrp	x0, 400000 <_init-0x8a0>
  400ce0:	913a0000 	add	x0, x0, #0xe80
  400ce4:	97ffff3b 	bl	4009d0 <chdir@plt>
  400ce8:	b9001fbf 	str	wzr, [x29, #28]
  400cec:	14000006 	b	400d04 <create_daemon+0xc8>
  400cf0:	b9401fa0 	ldr	w0, [x29, #28]
  400cf4:	97ffff1f 	bl	400970 <close@plt>
  400cf8:	b9401fa0 	ldr	w0, [x29, #28]
  400cfc:	11000400 	add	w0, w0, #0x1
  400d00:	b9001fa0 	str	w0, [x29, #28]
  400d04:	b9401fa0 	ldr	w0, [x29, #28]
  400d08:	7100081f 	cmp	w0, #0x2
  400d0c:	54ffff2d 	b.le	400cf0 <create_daemon+0xb4>
  400d10:	52800000 	mov	w0, #0x0                   	// #0
  400d14:	97ffff3b 	bl	400a00 <umask@plt>
  400d18:	d503201f 	nop
  400d1c:	a8c27bfd 	ldp	x29, x30, [sp], #32
  400d20:	d65f03c0 	ret
  400d24:	00000000 	.inst	0x00000000 ; undefined

0000000000400d28 <__libc_csu_init>:
  400d28:	a9bc7bfd 	stp	x29, x30, [sp, #-64]!
  400d2c:	910003fd 	mov	x29, sp
  400d30:	a901d7f4 	stp	x20, x21, [sp, #24]
  400d34:	b0000094 	adrp	x20, 411000 <__FRAME_END__+0x1017c>
  400d38:	b0000095 	adrp	x21, 411000 <__FRAME_END__+0x1017c>
  400d3c:	91374294 	add	x20, x20, #0xdd0
  400d40:	913722b5 	add	x21, x21, #0xdc8
  400d44:	a902dff6 	stp	x22, x23, [sp, #40]
  400d48:	cb150294 	sub	x20, x20, x21
  400d4c:	f9001ff8 	str	x24, [sp, #56]
  400d50:	2a0003f6 	mov	w22, w0
  400d54:	aa0103f7 	mov	x23, x1
  400d58:	9343fe94 	asr	x20, x20, #3
  400d5c:	aa0203f8 	mov	x24, x2
  400d60:	97fffed0 	bl	4008a0 <_init>
  400d64:	b4000194 	cbz	x20, 400d94 <__libc_csu_init+0x6c>
  400d68:	f9000bb3 	str	x19, [x29, #16]
  400d6c:	d2800013 	mov	x19, #0x0                   	// #0
  400d70:	f8737aa3 	ldr	x3, [x21, x19, lsl #3]
  400d74:	aa1803e2 	mov	x2, x24
  400d78:	aa1703e1 	mov	x1, x23
  400d7c:	2a1603e0 	mov	w0, w22
  400d80:	91000673 	add	x19, x19, #0x1
  400d84:	d63f0060 	blr	x3
  400d88:	eb13029f 	cmp	x20, x19
  400d8c:	54ffff21 	b.ne	400d70 <__libc_csu_init+0x48>  // b.any
  400d90:	f9400bb3 	ldr	x19, [x29, #16]
  400d94:	a941d7f4 	ldp	x20, x21, [sp, #24]
  400d98:	a942dff6 	ldp	x22, x23, [sp, #40]
  400d9c:	f9401ff8 	ldr	x24, [sp, #56]
  400da0:	a8c47bfd 	ldp	x29, x30, [sp], #64
  400da4:	d65f03c0 	ret

0000000000400da8 <__libc_csu_fini>:
  400da8:	d65f03c0 	ret

Disassembly of section .fini:

0000000000400dac <_fini>:
  400dac:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
  400db0:	910003fd 	mov	x29, sp
  400db4:	a8c17bfd 	ldp	x29, x30, [sp], #16
  400db8:	d65f03c0 	ret
